﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
// REAL507 删除公共字符
// 例如，输入”They are students.”和”aeiou”，
// 则删除之后的第一个字符串变成”Thy r stdnts.”

int is_exist(char a, char arr[])
{
	int i = 0;
	while (arr[i])
	{
		if (arr[i] == a)
		{
			return 1;
		}
		i++;
	}
	return 0;
}
int main()
{
	char arr1[101] = { 0 };
	char arr2[101] = { 0 };
	gets(arr1);
	gets(arr2);
	int i = 0;
	while (arr1[i])
	{
		if (is_exist(arr1[i], arr2) == 0)
		{
			printf("%c", arr1[i]);
		}
		i++;
	}
	return 0;
}